<?php if (!defined('THINK_PATH')) exit();?><div class="row">
    <div class="col-sm-12">
        <table id="list-table" class="table table-bordered table-striped dataTable" role="grid" aria-describedby="example1_info">
            <thead>
                <tr role="row">
                    <th class="sorting text-center" tabindex="0">ID</th>
                    <th class="sorting text-center" tabindex="0">会计师名称</th>
                    <th class="sorting text-center" tabindex="0">设备号ID</th>
                    <th class="sorting text-center" tabindex="0">推送问题</th>
                    <th class="sorting text-center" tabindex="0">推送内容</th>
                    <th class="sorting text-center" tabindex="0">推送类型</th>
                    <th class="sorting text-center" tabindex="0">推送状态</th>
                    <th class="sorting text-center" tabindex="0">推送时间</th>
                    <th class="sorting text-center" tabindex="0">操作</th>
                </tr>
            </thead>
            <tbody>
            <?php if(is_array($lists)): $i = 0; $__LIST__ = $lists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if($vo["id"] > 0): ?><tr role="row">
                    <td align="center"><?php echo ($vo["id"]); ?></td>
                    <td><?php echo ($vo["username"]); ?></td>
                    <td><?php echo ($vo["reg_id"]); ?></td>
                    <td><?php echo ($vo["title"]); ?>[ID: <?php echo ($vo["question_id"]); ?>]</td>
                    <td><?php echo ($vo["content"]); ?></td>


                    <td><?php echo ($typeArr[$vo[type]]); ?></td>

                    <td><?php if($vo["status"] == 1): ?>成功<?php else: ?><font color="red">失败</font><?php endif; ?></td>

                    <td><?php echo (date("Y-m-d H:i:s",$vo["add_time"])); ?></td>

                <td>

                    <a href="<?php echo U('PushMsg/detail',array('id'=>$vo['id']));?>" data-toggle="tooltip" title="编辑" class="btn btn-info" data-original-title="编辑"><i class="fa fa-pencil"></i></a>

                    <a class="btn btn-danger" title="删除" href="javascript:;" data-url="<?php echo U('PushMsg/handle');?>" data-id="<?php echo ($vo["id"]); ?>" onclick="delfun(this)"><i class="fa fa-trash-o"></i></a>
                </td>
                </tr><?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
            <tfoot>
            </tfoot>
        </table>
    </div>
</div>
<div class="row">
    <div class="col-sm-6 text-left"></div>
    <div class="col-sm-6 text-right"><?php echo ($page); ?></div>
</div>
<script>
    $(".pagination  a").click(function () {
        var href = $(this).attr('href');
        page = href.split('/');
        ajaxGetTable('search-form2', page[page.length - 1]);
        return false;
    });
</script>